package com.dragon.graduation.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dragon.graduation.project.entity.ProjectEntity;
import com.dragon.graduation.project.mapper.ProjectMapper;
import com.dragon.graduation.project.service.ProjectService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 题目表 服务实现类
 * </p>
 *
 * @author dragon
 * @since 2025-02-28 21:19:40
 */
@Service
public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, ProjectEntity> implements ProjectService {

    @Override
    public List<ProjectEntity> findByUserId(Integer id) {
        return baseMapper.selectByUserId(id);
    }

    @Override
    public List<ProjectEntity> findByTeacherId(Integer id) {
        return baseMapper.selectByTeachserId(id);
    }
}
